//
// Created by martin on 3/25/22.
//

#include "FtpResponse.h"

using namespace ftp;
using namespace muduo;
using namespace muduo::net;

void FtpResponse::appendToBuffer(Buffer *output) const
{
    char buf[32];
    snprintf(buf, sizeof(buf), "%d", code_);
//    output->appendInt32(code);
    output->append(buf);
    output->append(" ");
    output->append(text_);
    output->append("\r\n");
}
